package com.bai.localshop.mapper;

import com.bai.localshop.pojo.dto.UserPageQueryDTO;
import com.bai.localshop.pojo.entity.User;
import com.bai.localshop.pojo.vo.UserPageVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {

    /**
     * 分页查询用户信息（包含角色信息）
     */
    IPage<UserPageVO> selectUserPage(@Param("page") Page<UserPageVO> page, @Param("param") UserPageQueryDTO requestParam);
}